import {
  Spin,
  Table,
  Card
} from "antd";
import React, { Component } from "react";
import "./index.scss";
import Link from "umi/link";

import { connect } from "dva";
const { Meta } = Card;
@connect(
  state => ({
    
	}),{
    getData:()=>({
			type:'aliyun/getData'
		})
  }
)
class index extends Component {
  constructor(props) {
    super(props);
    this.state = {
      type: 1,
      data:{},
      list1:[],
      list2:[],
      elements:[]
    };
  }
  componentDidMount(){
    console.log(11)
    this.props.getData();
    
  }
  componentWillReceiveProps(props) {
 
  }
  

  changeTab(type){
    if(type == 1){
      this.setState({
        list:this.state.list1,
        type:1
      })
    }else{
      this.setState({
        list:this.state.list2,
        type:2
      })
    }
  }
  render() {
    
    return (
      <div className="index-container">
        123

      </div>
    );
  }
}

export default index;
